<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/6
  Time: 9:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加页面</title>
    <script type="text/javascript">
        function addCustomer(){
            var form = document.forms[0];
            form.action = "${pageContext.request.contextPath}/addCustomer";
            form.method="post";
            form.submit();
        }
    </script>
</head>
<body>

<form action="" name="customerForm">
    姓名：<input type="text" id="cust_name" name="cust_name"></br>
    密码：<input type="text" id="cust_pwd" name="cust_pwd"></br>
    电话：<input type="text" id="cust_phone" name="cust_phone"></br>
    地址：<input type="text" id="cust_address" name="cust_address">


    <input type="button" value="添加" onclick="addCustomer()">
</form>
</body>
</html>
